Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eth/tracers: fix json logger for evm blocktest #29795

Merged
merged 2 commits into from
May 23, 2024

Conversation

s1na
Copy link
Contributor

@s1na s1na commented May 16, 2024

evm blocktest goes through the main block processing code path, triggering the system calls. That caused a crash because we start opcode processing without doing OnTxStart (which sets the env).

This PR removes events from the system call. I'm open to keeping them if they are useful for testers, and instead fix the crash.

Copy link
Contributor

@holiman holiman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@holiman holiman added this to the 1.14.4 milestone May 23, 2024
@fjl fjl changed the title eth/tracers: Fix json logger for evm blocktest eth/tracers: fix json logger for evm blocktest May 23, 2024
@fjl fjl merged commit fa58176 into ethereum:master May 23, 2024
2 of 3 checks passed
jorgemmsilva pushed a commit to iotaledger/go-ethereum that referenced this pull request Jun 17, 2024
stwiname pushed a commit to subquery/data-node-go-ethereum that referenced this pull request Sep 9, 2024
l.hooks = &tracing.Hooks{
OnTxStart: l.OnTxStart,
OnSystemCallStart: l.onSystemCallStart,
OnExit: l.OnEnd,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AHA! Here sits the bug!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants